package com.cdks.wuxiu.api.service.mysql;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cdks.wuxiu.api.model.dto.WalletInfoDTO;
import com.cdks.wuxiu.entity.mysql.UserWalletInfo;

/**
 * 钱包信息表 服务类
 */
public interface UserWalletInfoService extends IService<UserWalletInfo> {
    int init(long userId);
    int decCoin(long userId, long cost, int statisType, int expendType);
    int addCoin(long userId, long cost, int statisType);
    int decBean(long userId, long cost, int statisType, int expendType);
    int addBean(long userId, long cost, int statisType);

    UserWalletInfo getByUserId(long userId);

    WalletInfoDTO getInfoWithScore(long userId, long expire);
}
